package team.archai.nexus.boot.web.annotation;

import java.lang.annotation.*;

/**
 * @description: 请求限制注解
 * @author: lishibin
 * @create: 10:15 PM
 **/
@Documented
@Inherited
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SecureLimit {

    /**
    * @program: AccessLimit
    * @description: 时间限制单位s
    * @author: lishibin
    * @create: 10:16 PM
    **/
    int time() default 1;

    /**
    * @program: AccessLimit
    * @description: 次数限制
    * @author: lishibin
    * @create: 10:17 PM
    **/
    int times() default 1;
}
